<?php
class Pageley_Domain_PropertyChangedEvent {
	private $entity;
	private $propertyName;
	private $oldValue;
	private $newValue;
	
	public function __construct($entity, $propertyName, $oldValue, $newValue) {
		$this->entity = $entity;
		$this->propertyName = $propertyName;
		$this->oldValue = $oldValue;
		$this->newValue = $newValue;
	}
	
	public function getEntity() {
		return $this->entity;
	}
	
	public function getPropertyName() {
		return $this->propertyName;
	}
	
	public function getOldValue() {
		return $this->oldValue;
	}
	
	public function getNewValue() {
		return $this->newValue;
	}
}